package com.pet_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pet_service.enums.TUserAddressStatus;
import lombok.Data;

/**
 * 用户地址表
 * @TableName user_address
 */
@TableName(value ="user_address")
@Data
public class UserAddress extends BaseEntity {
    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer user_id;

    /**
     * 省
     */
    @TableField(value = "province")
    private String province;

    /**
     * 市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 区
     */
    @TableField(value = "district")
    private String district;

    /**
     * 详细地址
     */
    @TableField(value = "detail")
    private String detail;

    /**
     * 0-否；1-是
     */
    @TableField(value = "is_default")
    private TUserAddressStatus is_default;
}